-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[SoftDeleteable] Make deleted value configurable for SoftDeleteableFilter.php #2873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
[SoftDeleteable] Make deleted value configurable for SoftDeleteableFilter.php #2873
Conversation
4e6a1f2
to
6264492
Compare
@phansys We have added some tests like the existing ones, does this meet the requirements? |
You mind describing the use case here? Also, just on a glance over this PR it seems like a lot more changes than this would be needed considering the extension is designed around using nullable date columns for the deleted value, so widening it to support non-date values in place of null feels like it would need more changes. You've also only updated the ORM's filter class, the ODM's should be updated as well to keep both implementations working the same way. As for the tests, new test fixtures should be added which cover the new configuration option and not just adding it to the existing tests. |
The use case is as follows: |
@mbabker Do you consider new test satisfactory? |
@phansys We'd love to get this merged, any help you can provide to help us to reach that point would be much appreciated. |
I don't have merge rights so I can't do anything with this. But based on the current state of the PR:
My one outstanding concern is that the current state of the fixtures (especially the |
@mbabker Thank you for the clear feedback, I have made the requested changes. It is indeed intended to work with datetime-ish or null values, and I have updated everywhere 0 was used to be DateTime instead. @phansys It would be greatly appreciated if this could be merged. |
@phansys Could you maybe take a look at this? Thanks in advance |
…d-value # Conflicts: # doc/softdeleteable.md
No description provided.